<template>
  <div class="k-duty-box">
    <div class="k-title">
      <div>林长姓名</div>
      <div>{{ renName }}</div>
    </div>
    <NScrollbar style="height: calc(100% - 50px)">
      <div v-for="item of PageData.leaderSystemOperation" class="k-ren-zone">
        <NEllipsis :line-clamp="2"> {{ item.date }}</NEllipsis>
        <div>{{ item.title }}</div>
        <div class="k-ren-zone-box">
          <img :src="ite" v-for="ite of images" class="ren-box" />
        </div>
      </div>
    </NScrollbar>
    <div class="k-t-l"></div>
    <div class="k-t-r"></div>
    <div class="k-b-l"></div>
    <div class="k-b-r"></div>
    <div class="k--btn" @click="conl">✖</div>
  </div>
</template>
      
<script lang="ts" setup>
import { onMounted } from "vue";
import { PageData, renName } from "../../composables/useMapView";
import ren1 from "../../assets/images/ren.png";
import { NScrollbar, NEllipsis } from "naive-ui";
import { FeatureIs, updateData } from "../../composables/useMapView.ts";

onMounted(() => {
  console.log(PageData.value.leaderSystemOperation);
  console.log(12121212121);
  
});

const images = [ren1, ren1, ren1];

const conl = () => {
  FeatureIs.value.x = -9000;
};
</script>
      
<style scoped lang="scss">
.k-duty-box {
  position: relative;
  width: 400px;
  left: 0;
  top: 0px;
  height: 340px;
  backdrop-filter: blur(5px);
  background-color: #21261dad;
  border: 1px solid rgb(0, 170, 255);
  .k-title {
    position: relative;
    top: 10px;
    left: 10px;
    width: 378px;
    height: 26px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: #1de398;

    .k-title-text {
      position: absolute;
      top: 6px;
      left: 11px;
      font-size: 16px;
      color: #fff;
      font-family: "HYk2gj";
      font-weight: bold;
    }
  }
  .k-ren-zone {
    position: relative;
    padding: 0px 10px;
    .k-ren-zone-box {
      position: relative;
      width: 100%;
      display: flex;
      gap: 10px;
      /* top: 3px; */
      margin: 10px 0px;
      .ren-box {
        position: relative;
        width: 92px;
        height: 62px;
        border: 1px solid #3e83ff;
      }
    }
  }

  .k-t-l {
    position: absolute;
    width: 40px;
    height: 40px;
    border-top: 4px solid #39d79b;
    border-left: 4px solid #39d79b;
    top: -4px;
    left: -4px;
  }
  .k-t-r {
    position: absolute;
    width: 40px;
    height: 40px;
    border-top: 4px solid #39d79b;
    border-right: 4px solid #39d79b;
    top: -4px;
    right: -4px;
  }
  .k-b-l {
    position: absolute;
    width: 40px;
    height: 40px;
    border-left: 4px solid #39d79b;
    border-bottom: 4px solid #39d79b;
    left: -4px;
    bottom: -4px;
  }
  .k-b-r {
    position: absolute;
    width: 40px;
    height: 40px;
    border-right: 4px solid #39d79b;
    border-bottom: 4px solid #39d79b;
    right: -4px;
    bottom: -4px;
  }

  .k--btn {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgb(0, 255, 238);
    border-radius: 20px;
    top: -8px;
    right: -8px;
    color: #1de398;
    opacity: 0;
  }

  &:hover {
    .k--btn {
      opacity: 1;
      cursor: pointer;
    }
  }
}
</style>
      